package com.renl.juc.tips;

import lombok.Getter;

/**
 * @author renl
 * @date 2020/1/7
 * 枚举类
 */
enum CountryEnum {
  ONE(1,"齐"),TWO(2,"楚"),THREE(3,"燕"),FOUR(4,"赵"),FIVE(5,"魏"),SIX(6,"韩");
  @Getter  private int retCode;
  @Getter  private String retMessage;

  CountryEnum(int retCode, String retMessage) {
    this.retCode = retCode;
    this.retMessage = retMessage;
  }

  public static CountryEnum forEach_CountryEnum(int index){
    CountryEnum[] values = CountryEnum.values();
    for (CountryEnum element : values) {
      if (index == element.retCode){
        return element;
      }
    }
    return null;
  }
}

public class CountDownLatch {
  

}
